import request from '@/utils/request'
export const getRoleListAPI = (params) => request.get('/sys/role', { params })
export const addRoleAPI = data => request.post('/sys/role', data)
export const updateRoleAPI = (data) => request.put(`/sys/role/${data.id}`, data)
export const delRoleAPI = (id) => request.delete(`/sys/role/${id}`)
export const getAllRoleEnableAPI = () => request.get('/sys/role/list/enabled')
export const getRoleDetailAPI = (id) => request.get(`/sys/role/${id}`)
export const assignRoleAPI = (data) => request.put('/sys/role/assignPrem', data)
